package com.feilong.modules.model.home.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UpdateSwiperRequest {

    @NotNull(message = "轮播图id不能为空")
    @Min(value = 1, message = "轮播图id不正确")
    private Integer swiperId;

    @NotBlank(message = "图片不能为空")
    private String imageSrc;

    /**
     * 跳转地址
     */
    private String navigateUrl;

    /**
     * 跳转方式：navigate; switchTab
     */
    private String openType;

    @NotNull(message = "是否展示不能为空")
    @Min(value = 0, message = "是否展示传值错误")
    @Max(value = 1, message = "是否展示传值错误")
    private Integer isShow;
}
